Optimal. Leaf size=42 \[ -\frac {\sqrt {b} \tan ^{-1}\left (\frac {\sqrt {b} \cosh (x)}{\sqrt {a}}\right )}{\sqrt {a} (a+b)}-\frac {\tanh ^{-1}(\cosh (x))}{a+b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {3190, 391, 206, 205} \[ -\frac {\sqrt {b} \tan ^{-1}\left (\frac {\sqrt {b} \cosh (x)}{\sqrt {a}}\right )}{\sqrt {a} (a+b)}-\frac {\tanh ^{-1}(\cosh (x))}{a+b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 206
Rule 391
Rule 3190
Rubi steps
\begin {align*} \int \frac {\text {csch}(x)}{a+b \cosh ^2(x)} \, dx &=-\operatorname {Subst}\left (\int \frac {1}{\left (1-x^2\right ) \left (a+b x^2\right )} \, dx,x,\cosh (x)\right )\\ &=-\frac {\operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\cosh (x)\right )}{a+b}-\frac {b \operatorname {Subst}\left (\int \frac {1}{a+b x^2} \, dx,x,\cosh (x)\right )}{a+b}\\ &=-\frac {\sqrt {b} \tan ^{-1}\left (\frac {\sqrt {b} \cosh (x)}{\sqrt {a}}\right )}{\sqrt {a} (a+b)}-\frac {\tanh ^{-1}(\cosh (x))}{a+b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.14, size = 99, normalized size = 2.36 \[ \frac {-\sqrt {b} \tan ^{-1}\left (\frac {\sqrt {b}-i \sqrt {a+b} \tanh \left (\frac {x}{2}\right )}{\sqrt {a}}\right )-\sqrt {b} \tan ^{-1}\left (\frac {\sqrt {b}+i \sqrt {a+b} \tanh \left (\frac {x}{2}\right )}{\sqrt {a}}\right )+\sqrt {a} \log \left (\tanh \left (\frac {x}{2}\right )\right )}{\sqrt {a} (a+b)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.64, size = 349, normalized size = 8.31 \[ \left [\frac {\sqrt {-\frac {b}{a}} \log \left (\frac {b \cosh \relax (x)^{4} + 4 \, b \cosh \relax (x) \sinh \relax (x)^{3} + b \sinh \relax (x)^{4} - 2 \, {\left (2 \, a - b\right )} \cosh \relax (x)^{2} + 2 \, {\left (3 \, b \cosh \relax (x)^{2} - 2 \, a + b\right )} \sinh \relax (x)^{2} + 4 \, {\left (b \cosh \relax (x)^{3} - {\left (2 \, a - b\right )} \cosh \relax (x)\right )} \sinh \relax (x) - 4 \, {\left (a \cosh \relax (x)^{3} + 3 \, a \cosh \relax (x) \sinh \relax (x)^{2} + a \sinh \relax (x)^{3} + a \cosh \relax (x) + {\left (3 \, a \cosh \relax (x)^{2} + a\right )} \sinh \relax (x)\right )} \sqrt {-\frac {b}{a}} + b}{b \cosh \relax (x)^{4} + 4 \, b \cosh \relax (x) \sinh \relax (x)^{3} + b \sinh \relax (x)^{4} + 2 \, {\left (2 \, a + b\right )} \cosh \relax (x)^{2} + 2 \, {\left (3 \, b \cosh \relax (x)^{2} + 2 \, a + b\right )} \sinh \relax (x)^{2} + 4 \, {\left (b \cosh \relax (x)^{3} + {\left (2 \, a + b\right )} \cosh \relax (x)\right )} \sinh \relax (x) + b}\right ) - 2 \, \log \left (\cosh \relax (x) + \sinh \relax (x) + 1\right ) + 2 \, \log \left (\cosh \relax (x) + \sinh \relax (x) - 1\right )}{2 \, {\left (a + b\right )}}, -\frac {\sqrt {\frac {b}{a}} \arctan \left (\frac {1}{2} \, \sqrt {\frac {b}{a}} {\left (\cosh \relax (x) + \sinh \relax (x)\right )}\right ) - \sqrt {\frac {b}{a}} \arctan \left (\frac {{\left (b \cosh \relax (x)^{3} + 3 \, b \cosh \relax (x) \sinh \relax (x)^{2} + b \sinh \relax (x)^{3} + {\left (4 \, a + b\right )} \cosh \relax (x) + {\left (3 \, b \cosh \relax (x)^{2} + 4 \, a + b\right )} \sinh \relax (x)\right )} \sqrt {\frac {b}{a}}}{2 \, b}\right ) + \log \left (\cosh \relax (x) + \sinh \relax (x) + 1\right ) - \log \left (\cosh \relax (x) + \sinh \relax (x) - 1\right )}{a + b}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.10, size = 52, normalized size = 1.24 \[ -\frac {b \arctan \left (\frac {2 \left (a +b \right ) \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )-2 a +2 b}{4 \sqrt {a b}}\right )}{\left (a +b \right ) \sqrt {a b}}+\frac {\ln \left (\tanh \left (\frac {x}{2}\right )\right )}{a +b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -\frac {\log \left (e^{x} + 1\right )}{a + b} + \frac {\log \left (e^{x} - 1\right )}{a + b} - 2 \, \int \frac {b e^{\left (3 \, x\right )} - b e^{x}}{a b + b^{2} + {\left (a b + b^{2}\right )} e^{\left (4 \, x\right )} + 2 \, {\left (2 \, a^{2} + 3 \, a b + b^{2}\right )} e^{\left (2 \, x\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.39, size = 462, normalized size = 11.00 \[ -\frac {2\,\mathrm {atan}\left (\frac {{\mathrm {e}}^x\,\left (16\,a^2\,\sqrt {-a^2-2\,a\,b-b^2}+b^2\,\sqrt {-a^2-2\,a\,b-b^2}+8\,a\,b\,\sqrt {-a^2-2\,a\,b-b^2}\right )}{16\,a^3+24\,a^2\,b+9\,a\,b^2+b^3}\right )}{\sqrt {-a^2-2\,a\,b-b^2}}-\frac {\sqrt {b}\,\left (2\,\mathrm {atan}\left (\frac {\sqrt {b}\,{\mathrm {e}}^x\,\sqrt {a\,{\left (a+b\right )}^2}}{2\,a\,\left (a+b\right )}\right )-2\,\mathrm {atan}\left (\frac {\left (a^3\,b^{5/2}\,\sqrt {a^3+2\,a^2\,b+a\,b^2}+a^2\,b^{7/2}\,\sqrt {a^3+2\,a^2\,b+a\,b^2}\right )\,\left ({\mathrm {e}}^x\,\left (\frac {64\,\left (8\,a^3+10\,a^2\,b+2\,a\,b^2\right )}{a\,b^3\,\sqrt {a\,{\left (a+b\right )}^2}\,\left (a^2+b\,a\right )\,\sqrt {a^3+2\,a^2\,b+a\,b^2}}+\frac {32\,\left (b^{3/2}\,\sqrt {a^3+2\,a^2\,b+a\,b^2}+4\,a\,\sqrt {b}\,\sqrt {a^3+2\,a^2\,b+a\,b^2}\right )}{a^2\,b^{5/2}\,\left (a+b\right )\,\left (a^2+b\,a\right )\,\sqrt {a^3+2\,a^2\,b+a\,b^2}}\right )+\frac {32\,{\mathrm {e}}^{3\,x}\,\left (b^{3/2}\,\sqrt {a^3+2\,a^2\,b+a\,b^2}+4\,a\,\sqrt {b}\,\sqrt {a^3+2\,a^2\,b+a\,b^2}\right )}{a^2\,b^{5/2}\,\left (a+b\right )\,\left (a^2+b\,a\right )\,\sqrt {a^3+2\,a^2\,b+a\,b^2}}\right )}{256\,a+64\,b}\right )\right )}{2\,\sqrt {a^3+2\,a^2\,b+a\,b^2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\operatorname {csch}{\relax (x )}}{a + b \cosh ^{2}{\relax (x )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________